<%-- 
    Document   : HeaderView
    Created on : 20-jun-2013, 12:05:00
    Author     : John Castillo Valencia
    Edit by    : Ruben Q. Huanacuni Cano
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c"      uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt"    uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>.::LICI::.</title>
        <link rel="stylesheet" type="text/css" href="css/header.css" />
        <script type="text/javascript" src="js/ajax.js"></script>
        <script type="text/javascript">
            function __closeSession() {
                var req = null;
                req = AjaxHttp();
                req.open('POST','<c:url value="/logout"/>?__0M43THT3Z1L=', true);
                req.onreadystatechange =
                    function() { ''
                    if (req.readyState == 4) {
                        var res = req.responseText;
                        window.open('<c:url value="/logout"/>', '_top');
                    }
                };
                req.send(null);
            }
            function __bloquear() {
                top.__bloquearPantalla();
            }
        </script>
    </head>
    <body>
        <table cellpadding="0" cellspacing="0" border="0" width="110%">
            <tr>
                <td>
                    <table cellpadding="0" cellspacing="0" border="0" width="104%">                        
                        <tr>
                            <td colspan="2" class="tdvalue" align="right">${usuario.tipo_usuario}</td>
                        </tr>
                        <tr>
                            <td colspan="2" class="tdvalue" align="right"><b>${usuario.nombres} ${usuario.paterno} ${usuario.materno} (${usuario.id_usuario})</td>
                        </tr>
                        <tr>
                            <td align="left"><button style="width:50px" onclick="javascript:window.open('./','_top');" class="button">Inicio</button></td>
                            <td align="right"><button style="width:95px" onclick="javascript:__closeSession()" class="button">Cerrar sesi&oacute;n</button></td>                                   
                        </tr>
                    </table>
                </td>
                <td>
                    <table cellpadding="0" cellspacing="0" border="0" width="50%">
                        <tr>
                            <td>
                                <!--<img align="right" alt="Anonimo" src="<c:url value="/userfoto/jcastillo"/>" />-->
                                <img align="right" alt="Anonimo" src="resources/dismatel/anonimo.jpg"/>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </body>
</html>
